package com.ncsc.erp.model;
// Generated 20 มิ.ย. 2557, 12:55:43 by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * PcPurchaseReceiptItem generated by hbm2java
 */
@Entity
@Table(name="pc_purchase_receipt_item"
    ,catalog="ncsc_erp"
)
public class PcPurchaseReceiptItem  implements java.io.Serializable {


     private PcPurchaseReceiptItemId id;
     private PcPurchaseReceipt pcPurchaseReceipt;
     private MmItem mmItem;
     private SysUom sysUom;
     private String rcptSupplierItemCode;
     private String rcptItemCode;
     private String rcptItemDescr;
     private BigDecimal rcptQty;
     private BigDecimal rcptPpu;
     private Short rcptStatusIncVat;
     private BigDecimal rcptVatPercVal;
     private BigDecimal rcptVatVal;
     private BigDecimal rcptTotalPriceExcVat;
     private BigDecimal rcptTotalPrice;

    public PcPurchaseReceiptItem() {
    }

	
    public PcPurchaseReceiptItem(PcPurchaseReceiptItemId id, PcPurchaseReceipt pcPurchaseReceipt, BigDecimal rcptQty, BigDecimal rcptPpu, BigDecimal rcptVatPercVal, BigDecimal rcptVatVal, BigDecimal rcptTotalPriceExcVat) {
        this.id = id;
        this.pcPurchaseReceipt = pcPurchaseReceipt;
        this.rcptQty = rcptQty;
        this.rcptPpu = rcptPpu;
        this.rcptVatPercVal = rcptVatPercVal;
        this.rcptVatVal = rcptVatVal;
        this.rcptTotalPriceExcVat = rcptTotalPriceExcVat;
    }
    public PcPurchaseReceiptItem(PcPurchaseReceiptItemId id, PcPurchaseReceipt pcPurchaseReceipt, MmItem mmItem, SysUom sysUom, String rcptSupplierItemCode, String rcptItemCode, String rcptItemDescr, BigDecimal rcptQty, BigDecimal rcptPpu, Short rcptStatusIncVat, BigDecimal rcptVatPercVal, BigDecimal rcptVatVal, BigDecimal rcptTotalPriceExcVat, BigDecimal rcptTotalPrice) {
       this.id = id;
       this.pcPurchaseReceipt = pcPurchaseReceipt;
       this.mmItem = mmItem;
       this.sysUom = sysUom;
       this.rcptSupplierItemCode = rcptSupplierItemCode;
       this.rcptItemCode = rcptItemCode;
       this.rcptItemDescr = rcptItemDescr;
       this.rcptQty = rcptQty;
       this.rcptPpu = rcptPpu;
       this.rcptStatusIncVat = rcptStatusIncVat;
       this.rcptVatPercVal = rcptVatPercVal;
       this.rcptVatVal = rcptVatVal;
       this.rcptTotalPriceExcVat = rcptTotalPriceExcVat;
       this.rcptTotalPrice = rcptTotalPrice;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="rcptNo", column=@Column(name="RCPT_NO", nullable=false) ), 
        @AttributeOverride(name="rcptLineNo", column=@Column(name="RCPT_LINE_NO", nullable=false) ) } )
    public PcPurchaseReceiptItemId getId() {
        return this.id;
    }
    
    public void setId(PcPurchaseReceiptItemId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="RCPT_NO", nullable=false, insertable=false, updatable=false)
    public PcPurchaseReceipt getPcPurchaseReceipt() {
        return this.pcPurchaseReceipt;
    }
    
    public void setPcPurchaseReceipt(PcPurchaseReceipt pcPurchaseReceipt) {
        this.pcPurchaseReceipt = pcPurchaseReceipt;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="RCPT_ITEM_NO")
    public MmItem getMmItem() {
        return this.mmItem;
    }
    
    public void setMmItem(MmItem mmItem) {
        this.mmItem = mmItem;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="RCPT_UOM_NO")
    public SysUom getSysUom() {
        return this.sysUom;
    }
    
    public void setSysUom(SysUom sysUom) {
        this.sysUom = sysUom;
    }

    
    @Column(name="RCPT_SUPPLIER_ITEM_CODE", length=50)
    public String getRcptSupplierItemCode() {
        return this.rcptSupplierItemCode;
    }
    
    public void setRcptSupplierItemCode(String rcptSupplierItemCode) {
        this.rcptSupplierItemCode = rcptSupplierItemCode;
    }

    
    @Column(name="RCPT_ITEM_CODE", length=50)
    public String getRcptItemCode() {
        return this.rcptItemCode;
    }
    
    public void setRcptItemCode(String rcptItemCode) {
        this.rcptItemCode = rcptItemCode;
    }

    
    @Column(name="RCPT_ITEM_DESCR", length=300)
    public String getRcptItemDescr() {
        return this.rcptItemDescr;
    }
    
    public void setRcptItemDescr(String rcptItemDescr) {
        this.rcptItemDescr = rcptItemDescr;
    }

    
    @Column(name="RCPT_QTY", nullable=false, precision=10)
    public BigDecimal getRcptQty() {
        return this.rcptQty;
    }
    
    public void setRcptQty(BigDecimal rcptQty) {
        this.rcptQty = rcptQty;
    }

    
    @Column(name="RCPT_PPU", nullable=false, precision=10)
    public BigDecimal getRcptPpu() {
        return this.rcptPpu;
    }
    
    public void setRcptPpu(BigDecimal rcptPpu) {
        this.rcptPpu = rcptPpu;
    }

    
    @Column(name="RCPT_STATUS_INC_VAT")
    public Short getRcptStatusIncVat() {
        return this.rcptStatusIncVat;
    }
    
    public void setRcptStatusIncVat(Short rcptStatusIncVat) {
        this.rcptStatusIncVat = rcptStatusIncVat;
    }

    
    @Column(name="RCPT_VAT_PERC_VAL", nullable=false, precision=10)
    public BigDecimal getRcptVatPercVal() {
        return this.rcptVatPercVal;
    }
    
    public void setRcptVatPercVal(BigDecimal rcptVatPercVal) {
        this.rcptVatPercVal = rcptVatPercVal;
    }

    
    @Column(name="RCPT_VAT_VAL", nullable=false, precision=15)
    public BigDecimal getRcptVatVal() {
        return this.rcptVatVal;
    }
    
    public void setRcptVatVal(BigDecimal rcptVatVal) {
        this.rcptVatVal = rcptVatVal;
    }

    
    @Column(name="RCPT_TOTAL_PRICE_EXC_VAT", nullable=false, precision=15)
    public BigDecimal getRcptTotalPriceExcVat() {
        return this.rcptTotalPriceExcVat;
    }
    
    public void setRcptTotalPriceExcVat(BigDecimal rcptTotalPriceExcVat) {
        this.rcptTotalPriceExcVat = rcptTotalPriceExcVat;
    }

    
    @Column(name="RCPT_TOTAL_PRICE", precision=15)
    public BigDecimal getRcptTotalPrice() {
        return this.rcptTotalPrice;
    }
    
    public void setRcptTotalPrice(BigDecimal rcptTotalPrice) {
        this.rcptTotalPrice = rcptTotalPrice;
    }




}


